package com.module.ble.db.table

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

/**
 * 作者：sosou
 * <p>
 * 版本：1.0
 * <p>
 * 创建日期：2025/5/26
 * <p>
 * 描述：健康综合数据记录
 * <p>
 * 修订历史：
 */
@Entity(tableName = "health_integrated_data", indices = [Index(value = ["createdTime"], unique = true)])
class UserHealthIntegratedData {

    //创建时间
    @PrimaryKey
    @ColumnInfo
    var createdTime: Long = 0L

    //创建时间(年月日)
    @ColumnInfo
    var inDateTime: Long = 0L

    //mac
    @ColumnInfo
    var macAddress: String? = ""

    //厂商
    @ColumnInfo
    var firmName: String? = ""

    //该条记录对应的账号id
    @ColumnInfo
    var userId: String? = ""

    //心率
    @ColumnInfo
    var hr : Int = 0

    //心率变异性
    @ColumnInfo
    var hrv : Int = 0

    //血氧
    @ColumnInfo
    var bo : Float = 0f

    //体温
    @ColumnInfo
    var tempv : Float = 0f

    //环境温度
    @ColumnInfo
    var envtp : Float = 0f

    //步数
    @ColumnInfo
    var step : Long  = 0L

    //卡路里，单位：100卡
    @ColumnInfo
    var calorie : Int = 0

    //距离，单位：米
    @ColumnInfo
    var distance : Int = 0

    //sos
    @ColumnInfo
    var sos : Int = 0

    //压力
    @ColumnInfo
    var stress : Int = 0

    //数据版本
    @ColumnInfo
    var dataVersion : Long = 0L

    //同步状态
    @ColumnInfo
    var sysStat : Int = 0

    //时区
    @ColumnInfo
    var timeZone : String? = ""

}